package iosr11.example;

import iosr11.Service.GroupService;
import iosr11.Service.ServiceLocatorImpl_old;
import iosr11.Service.StudentService;
import iosr11.data.Group;
import iosr11.data.Student;

public class GroupServiceMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		GroupService groupS = (GroupService) ServiceLocatorImpl_old.getInstance().getService(Group.class);
		StudentService studentS = (StudentService) ServiceLocatorImpl_old.getInstance().getService(Student.class);
		
		Student student = studentS.getStudent("antoni.kowalski@gmail.com");
		System.out.println(student);
		Group grp = new Group();
		grp.setStudents(null);
		grp.setTitle("piatek 12");
		
		//Group group = groupS.getGroup("piatek 12");
		//System.out.println(grp);
		System.out.println(grp);
		//System.out.println(groupS.addGroup(grp));
		//System.out.println(groupS.addStudentToGroup(student, group));
		//System.out.println(groupS.deleteGroup(grp));
		//System.out.println(groupS.addGroup(grp));
	}
	
}
